<div class="fans_group_inner" style="padding:0;">
	<div class="dbWrap">
	<div class="set_warp Nlogin">
	<div class="Nll">
	<!--{eval $login_extract=jsg_member_login_extract();}-->
	<!--{if $login_extract && (($login_extract_forms=$login_extract[login_forms]) || ($login_extract_html=$login_extract[login_html]))}-->
	<!--{if $login_extract_forms}-->
	<form method="{$login_extract_forms[method]}" action="{$login_extract_forms[action]}">
	  <!--{loop $login_extract_forms[hidden_inputs] $v}-->
	  <input type="hidden" name="{$v[name]}" value="{$v[value]}" />
	  <!--{/loop}-->
		<table width="100%" border="0">
		  <tr>
			<td>
			<p class="nll_p">
            <input name="username" type="text"  class="inputtextTag" id="username_input" onblur="logincheckUsername(this.value);" value="$this->Config['changeword']['username']" onfocus="this.value=''"/>
            <div id="username_tip"></div>
            </p>
			</td>
		  </tr>
          
		  <tr>
			<td>
			<p class="nll_p">
            <input name="password" type="password" class="inputtextTag" value="请输入登录密码" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入登录密码';}"/>
            </p>
			</td>
		  </tr>
	
		  <tr>
			<td>	
			<input name="{$login_extract_forms[submit_input][name]}" type="submit" value="{$login_extract_forms[submit_input][value]}" class="Nbtn_login" onclick="guestLoginSubmit();"/>	
			</td>
		  </tr>

		</table>
	</form>
		  <!--{else}-->
			<!--{if $login_extract_html}-->{$login_extract_html}<!--{/if}-->
		  <!--{/if}-->
	<!--{else}-->
	<form method="POST" action="index.php?mod=login&code=dologin">
		<table width="100%" border="0">
		  <tr>
			<td>
			<p class="nll_p">
            <input name="username" type="text"  class="inputtextTag" id="username_input" onblur="logincheckUsername(this.value);if(this.value==''){this.value='$this->Config['changeword']['username']';}" value="$this->Config['changeword']['username']" onfocus="this.value=''"/>

            <div id="username_tip"></div>
            </p>		
            </td>
		  </tr>
		  <tr>
			<td>
			<p class="nll_p">
            <input name="password" id="password_input" type="password" class="inputtextTag" value="请输入登录密码" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入登录密码';}"/>
            </p>
			</td>
		  </tr>
		  <tr>
			<td>	
            <p class="nll_p" style="margin-bottom:5px;">
            <label for="savelogin"><input type="checkbox" id="savelogin" name="savelogin" value="1" class="checkb"  title="请不要在公共电脑上使用自动登录功能"></label>
			下次自动登录 &nbsp;&nbsp; <a href="javascript:void(0)" title="点此可通过2种方式重设密码" target="_blank" onclick="window.location.href='index.php?mod=get_password';return false;">忘记密码？</a>
            </p>
			<!--{if $this->Config['seccode_login'] && $this->yxm_title}-->
			<input name="" type="button" value="" class="Nbtn_login" onclick="YXM_popBox(this,'login','{$this->yxm_title}');"/>
			<!--{else}-->
			<input name="" type="button" value="" class="Nbtn_login" onclick="guestLoginSubmit();"/>
			<!--{/if}-->
			<input name="loginType" type="hidden" id="loginType" value="show_login" />
			<input name="return_url" type="hidden" id="return_url" value="" />	
		
			</td>
		  </tr>

		  <tr>
		    <td>
			{if $this->Config[sina_enable] && sina_weibo_init()} {eval echo sina_weibo_login('s');} {/if}
			{if $this->Config[qqwb_enable] && qqwb_init()} {eval echo qqwb_login('s');} {/if}	
			{if $this->Config[kaixin_enable] && kaixin_init()} {eval echo kaixin_login('s');} {/if}	
			{if $this->Config[yy_enable] && yy_init()} {eval echo yy_login('s');} {/if}	
			{if $this->Config[renren_enable] && renren_init()} {eval echo renren_login('s');} {/if}	
			{if $this->Config[fjau_enable] && fjau_init()} {eval echo fjau_login('s');} {/if}	
			</td>
		  </tr>


		</table>
	</form>
	<!--{/if}-->
	</div>
	<div class="Nlr">
	<!--{if $login_extract && $login_extract[reg_button_html]}-->
		{$login_extract[reg_button_html]}
	<!--{else}-->
	还没注册过本站帐户？
	<a title="点此免费注册" onclick="window.open('{$this->Config[site_url]}/index.php?mod=member');return false;" class="Nbtn_reg" target="_blank">点此免费注册</a>
	注册后，可以方便地分享新鲜事、关注用户分享；
	并可通过手机随时随地参与互动。
	<!--{/if}-->
	</div>
	</div>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$(".sinaweiboLogin").mouseover(function(){$(".tlb_sina").show();});$(".sinaweiboLogin").mouseout(function(){$(".tlb_sina").hide();});
	$(".qqweiboLogin").mouseover(function(){$(".tlb_qq").show();});$(".qqweiboLogin").mouseout(function(){$(".tlb_qq").hide();});
	$(".yyLogin").mouseover(function(){$(".tlb_yy").show();});$(".yyLogin").mouseout(function(){$(".tlb_yy").hide();});
	$(".renrenLogin").mouseover(function(){$(".tlb_renren").show();});$(".renrenLogin").mouseout(function(){$(".tlb_renren").hide();});
	$(".kaixinLogin").mouseover(function(){$(".tlb_kaixin").show();});$(".kaixinLogin").mouseout(function(){$(".tlb_kaixin").hide();});
	$(".fjauLogin").mouseover(function(){$(".tlb_fj").show();});$(".fjauLogin").mouseout(function(){$(".tlb_fj").hide();});
});

</script>
<style type="text/css">
.tlb_sina,.tlb_qq,.tlb_yy,.tlb_renren,.tlb_kaixin,.tlb_fj{ margin:-45px 0 0 -13px;*margin:-45px 0 0 -55px;}
</style>
<script type="text/javascript">
function checkUsername(username){
	if(!username || username == ''){
		$('#username_tip').html('请输入帐号');
		$('#username_tip').show();
		$('#username_input').css({'background-color':'#FDEFEF','border-color':'#F87F7F'});
		$('#username_tip').addClass('username_tip_error');
		$('#username_tip').css({'width':'auto','margin-top':'6px'});
		$('.btn_login').attr('disabled',true);
		return false;
	}
	
	$.post(
	    'ajax.php?mod=member&code=checkuser',
	    {username:username},
	    function(d){
	    	if(d.done == false){
	    		$('#username_tip').html(d.msg);
	    		$('#username_tip').show();
				$('#username_input').css({'background-color':'#FDEFEF','border-color':'#F87F7F'});
				$('#username_tip').addClass('username_tip_error');
				$('#username_tip').css({'width':'auto','margin-top':'6px'});
	    		$('.btn_login').attr('disabled',true);
				
	    	} else {
	    		$('#username_tip').show();
				$('#username_input').css({'background-color':'#fff','border-color':'#999'});
				$('#username_tip').removeClass('username_tip_error');
				$('#username_tip').css({'width':'25px','right':'0','margin':'4px 4px 0 0','text-align':'right'});
	    		var html = "<img sr" + "c='" + d.msg+  "' onerror='javascript:faceError(this);'/>";
	    		$('#username_tip').html(html);
	    		$('.btn_login').attr('disabled',false);
	    	}
	    },
	    'json'
	)
}


function logincheckUsername(username){
	if(!username || username == ''){
		$('#username_tip').html('请输入帐号');
		$('#username_tip').show();
		$('#username_input').css({'background-color':'#FDEFEF','border-color':'#F87F7F'});
		$('#username_tip').addClass('username_tip_error');
		$('#username_tip').css({'width':'auto','margin-top':'5px','color':'#f30'});
		$('.btn_login').attr('disabled',true);
		return false;
	}
	
	$.post(
	    'ajax.php?mod=member&code=checkuser',
	    {username:username},
	    function(d){
	    	if(d.done == false){
	    		$('#username_tip').html(d.msg);
	    		$('#username_tip').show();
				$('#username_input').css({'background-color':'#FDEFEF','border-color':'#F87F7F'});
				$('#username_tip').addClass('username_tip_error');
				$('#username_tip').css({'width':'auto'});
	    		$('.btn_login').attr('disabled',true);
				
	    	} else {
	    		$('#username_tip').show();
				$('#username_input').css({'background-color':'#fff','border-color':'#d2d2d2'});
				$('#username_tip').removeClass('username_tip_error');
				$('#username_tip').css({'width':'25px','right':'0','margin-top':'4px'});
	    		var html = "<img sr" + "c='" + d.msg+  "' onerror='javascript:faceError(this);'/>";
	    		$('#username_tip').html(html);
	    		$('.btn_login').attr('disabled',false);
	    	}
	    },
	    'json'
	)
}


</script>